package com.example.bank.service.client;

import com.example.bank.pojo.Client;
import com.example.bank.pojo.ClientQuery;

import java.util.List;

/**
 * @author ：Leeziqiang
 * @description：ClientService接口
 * @date ：2021/12/4 9:19
 */
public interface ClientService {

    Client findById(String id);

    String findSalesman(String id);

    String findByNumber(String clientIdNumber);

    String findNumberById(String clientId);

    Client addClient(Client client);

    List<Client> listClients(List<String> ids);

    List<Client> listClients(List<String> ids, Integer approvalState);

    boolean updateClientState(String clientId, Integer state);

    List<Client> listAll();

    boolean updateDeadline(String clientId, String deadline, Integer state);

    List<Client> query(String salesman, String bankArea, Integer approvalState);

    List<Client> listByClientQuery(ClientQuery clientQuery, List<String> ids);

    boolean updateClient(Client client);

    boolean deleteClient(String id);

    boolean updateQueryState(String id);

}
